<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>校企云桥</title>
<link rel="stylesheet" href="${ctx }/css/framework/bootstrap.min.css">
<link rel="stylesheet" href="${ctx }/css/index.css">
</head>

<body>
	<c:import url="nav.jsp"></c:import>
	<div class="container">
		<div class="center">
			<ol class="breadcrumb">
				<li><a href="${ctx}/toHome">首页</a></li>
				<li class="active">赛事列表</li>
			</ol>

			<h2>最新赛事：</h2>
			<div class="row col-md-12 main grey">
				<c:forEach var="match" items="${matchList}">
					<div class="col-md-4 ">

						<div class="panel panel-default">
							<div class="panel-heading">
								<a class="con" href="match.html?match_id=${match.match_id }">
									<img src="${match.cover }" width="310" height="320">

								</a>
							</div>
							<div class="panel-body ">
								<p class="main">${match.match_name }</p>
							</div>

						</div>
					</div>
				</c:forEach>

			</div>
			<br>
			<h2>往期赛事：</h2>
			<div class="row col-md-12 main grey">

				<c:forEach var="report" items="${reportList}">
					<div class="col-md-4">

						<div class="panel panel-default">
							<div class="panel-heading">
								<a class="con" href="match.html?match_id=${report.report_id }">
									<img src="${report.cover }" width="310" height="320">

								</a>
							</div>
							<div class="panel-body">
								<p>${report.report_name }</p>
							</div>

						</div>
					</div>
				</c:forEach>

			</div>
		</div>

	</div>
	<c:import url="footer.jsp"></c:import>
	<script src="${ctx }/js/jquery.min.js"></script>
	<script src="${ctx }/js/framework/bootstrap.min.js"></script>
</body>

</html>